-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some code cleanup(s) #7412
Some code cleanup(s) #7412
Conversation
…up player * Removed ``player.getPlayPauseButton().requestFocus();`` as there is no reason why it was introduced there documented * Use the same delay to hide the controls on both players
app/src/main/java/org/schabi/newpipe/player/event/PlayerGestureListener.java
Show resolved
Hide resolved
a372ba1
to
203ca9a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree with you that removing the undocumented focus request is the right thing to do, then this is good to go (except for the small formatting issue). Btw the requestFocus line of code was added in a merge commit of #2907: https://github.com/TeamNewPipe/NewPipe/blame/3871d5aed77f63c74867b6076b31a61b69a8fda7/app/src/main/java/org/schabi/newpipe/player/event/PlayerGestureListener.java#L370
app/src/main/java/org/schabi/newpipe/player/event/PlayerGestureListener.java
Outdated
Show resolved
Hide resolved
app/src/main/java/org/schabi/newpipe/player/event/PlayerGestureListener.java
Outdated
Show resolved
Hide resolved
app/src/main/java/org/schabi/newpipe/player/event/PlayerGestureListener.java
Outdated
Show resolved
Hide resolved
app/src/main/java/org/schabi/newpipe/player/event/PlayerGestureListener.java
Outdated
Show resolved
Hide resolved
Please review again. |
app/src/main/java/org/schabi/newpipe/player/event/PlayerGestureListener.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
What is it?
Description of the changes in your PR
Code cleanup
See the commits for more detailed description.
APK testing
The APK can be found by going to the "Checks" tab below the title. On the left pane, click on "CI", scroll down to "artifacts" and click "app" to download the zip file which contains the debug APK of this PR.
Due diligence